package it.niedermann.android.markdown.markwon.plugins

import android.content.Context
import io.noties.markwon.base.AbstractMarkwonPlugin
import io.noties.markwon.base.MarkwonPlugin
import io.noties.markwon.theme.MarkwonCategoryTheme

class ThemePlugin private constructor(var context: Context) : AbstractMarkwonPlugin() {
    override fun configureTheme(builder: MarkwonCategoryTheme) {
        super.configureTheme(builder)
        /*builder.headingBreakHeight(0)
                .codeBlockBackgroundColor(ContextCompat.getColor(context, R.color.bg_code))
                .headingTextSizeMultipliers(new float[]{1.45f, 1.35f, 1.25f, 1.15f, 1.1f, 1.05f})
                .bulletWidth(context.getResources().getDimensionPixelSize(R.dimen.bullet_point_width));*/
    }

    companion object {
        fun create(context: Context): MarkwonPlugin {
            return ThemePlugin(context)
        }
    }
}